package cn.edu.zju.core.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 应用表
 * </p>
 *
 * @author zcx
 * @since 2024-06-06
 */
@Getter
@Setter
@Schema(name = "Application", description = "$!{table.comment}")
public class Application implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "应用名称")
    private String name;

    @Schema(description = "应用版本")
    private String version;

    @Schema(description = "应用描述")
    private String appDesc;

    @Schema(description = "应用图片id")
    private Integer imageFileId;

    @Schema(description = "应用模型id")
    private Integer modelId;

    @Schema(description = "应用接口地址")
    private String interfaceUrl;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime editTime;

    @Schema(description = "是否删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleted;
}
